import Layout from '@/layouts/index.vue';
import DashboardIcon from '@/assets/assets-slide-dashboard.svg';

export default [
  {
    path: '/dashboard',
    component: Layout,
    redirect: '/dashboard/base',
    name: 'dashboard',
    meta: { title: '传输', icon: DashboardIcon, hidden: true },
    children: [
      {
        path: 'chat',
        name: 'ChatBase',
        component: () => import('@/pages/dashboard/chat/index.vue'),
        meta: { title: '传输智能体' },
      },
      {
        path: 'messages/:id', // 动态会话路径 messages/123
        name: 'ChatMessages',
        component: () => import('@/pages/dashboard/messages/index.vue'),
        meta: { title: '传输智能体' },
        props: true, // 启用路由参数传递为props
      },
      {
        path: 'base',
        name: 'DashboardBase',
        component: () => import('@/pages/dashboard/base/index.vue'),
        meta: { title: '概览仪表盘' },
      },
    ],
  },
];
